package test;

import java.util.List;

import cn.bb.testDemo.RpcFramework;


/**
 * RpcConsumer
 * 
 * @author ZSL
 */
public class RpcConsumer {

	public static void main(String[] args) throws Exception {
		HelloService service = RpcFramework.refer(HelloService.class, "127.0.0.1", 8080);

		for (int i = 0; i < 100; i++) {
			String hello = service.hello("World" + i);
			System.out.println(hello);
			Thread.sleep(1000);
		}
	}

}
